% Import data from spreadsheet
%
pos = xlsread('G:\linux-vmware-data\MultiAxisData.csv','MultiAxisData','A1:A5000');
vel = xlsread('G:\linux-vmware-data\MultiAxisData.csv','MultiAxisData','B1:B5000');
acc = xlsread('G:\linux-vmware-data\MultiAxisData.csv','MultiAxisData','C1:C5000');
torque = xlsread('G:\linux-vmware-data\MultiAxisData.csv','MultiAxisData','D1:D5000');

pos2 = xlsread('G:\linux-vmware-data\MultiAxisData.csv','MultiAxisData','E1:E5000');
vel2 = xlsread('G:\linux-vmware-data\MultiAxisData.csv','MultiAxisData','F1:F5000');
acc2 = xlsread('G:\linux-vmware-data\MultiAxisData.csv','MultiAxisData','G1:G5000');
torque2 = xlsread('G:\linux-vmware-data\MultiAxisData.csv','MultiAxisData','H1:H5000');

pos3 = xlsread('G:\linux-vmware-data\MultiAxisData.csv','MultiAxisData','I1:I5000');
vel3 = xlsread('G:\linux-vmware-data\MultiAxisData.csv','MultiAxisData','J1:J5000');
acc3 = xlsread('G:\linux-vmware-data\MultiAxisData.csv','MultiAxisData','K1:K5000');
torque3 = xlsread('G:\linux-vmware-data\MultiAxisData.csv','MultiAxisData','L1:L5000');

clearvars raw;

figure

subplot(3,1,1);
%plot(0:1:(length(j1)-1),j1,'LineWidth',2);
plot(0:1:(length(pos)-1),pos,0:1:(length(vel)-1),vel, 0:1:(length(acc)-1),acc,  'LineWidth',2);
grid on
legend('position','vel','acc')

subplot(3,1,2);
%plot(0:1:(length(j1)-1),j1,'LineWidth',2);
plot(0:1:(length(pos2)-1),pos2,0:1:(length(vel2)-1),vel2, 0:1:(length(acc2)-1),acc2,  'LineWidth',2);
grid on
legend('position2','vel2','acc2')

subplot(3,1,3);
%plot(0:1:(length(j1)-1),j1,'LineWidth',2);
plot(0:1:(length(pos3)-1),pos3,0:1:(length(vel3)-1),vel3, 0:1:(length(acc3)-1),acc3,  'LineWidth',2);
grid on
legend('position3','vel3','acc3')



